package juc.demo2;

public class Incre {


    public static void main(String[] args) {

//       short s1 =1;
//       s1 = (short) (s1 + 1);

        //increNum(1237);
        System.out.println(getComputeAge(8));

        String foo = "blue";
        String bar = foo;
        foo = "green";
        System.out.println(bar);

    }




    static void increNum(int n) {

        if (n <= 5000) {
            increNum(n*2);
        }
        System.out.println(n);

    }

    public static int getComputeAge(int n)

    {

        if (n == 1) {
            return 10;
        } else {
            return getComputeAge(n - 1) + 2;
        }

    }
}



